﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;

namespace JSC.Mobile.Entities
{
    /// <summary>
    /// Class name en connectionstring name zijn hard gekoppeld aan elkaar!!!!
    /// </summary>
    public class JSCMobile : DbContext
    {
        protected override void OnModelCreating(System.Data.Entity.ModelConfiguration.ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<KilometerRegistratieRecord>()
                .Property(e => e.Datum)
                .HasColumnType("Date");
            modelBuilder.Entity<KilometerRegistratieRecord>()
                .Property(e => e.SynchronisatieMoment)
                .HasColumnType("Date");
        }

        public DbSet<KilometerRegistratieRecord> Kilometers { get; set; }
    }
}
